package com.itnoob.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhoujun
 * @date 2025/3/26 23:21
 */
@Service("b")
public class B1 implements B{

    @Autowired A a;

    @Override
    public void doSomething() {
        System.out.println("B1 do something");
//        调用A的方法
        a.doSomething();
    }
}
